package com.geekhalo.admin.domain.menu.update;

import com.geekhalo.admin.domain.menu.update.UpdateMenuCommand; 
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class UpdateMenuContext{
    private UpdateMenuCommand command;

    private UpdateMenuContext(UpdateMenuCommand command){
         this.command = command;
    }

    public static UpdateMenuContext apply(UpdateMenuCommand command) {
        UpdateMenuContext context = new UpdateMenuContext(command);
        return context;
    }
}
